package com.funds.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.funds.dao.GoodsTypeDao;
import com.funds.domain.GoodsType;

@Service
@Transactional(propagation=Propagation.NOT_SUPPORTED, readOnly=true)
public class GoodsTypeService {
	@Resource
	private GoodsTypeDao goodsTypeDao;
	
	public List<GoodsType> findAll() {
		return goodsTypeDao.findAll();
	}
	
	
	@Transactional
	public void addGoodsType(GoodsType gt) {
		goodsTypeDao.insertGoodsType(gt);
	}
}
